home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / diskmags / 5791-.end / dmg-6001 / vtxxx.txt < prev   
Text File  |  1997-01-17  |  11KB  |  246 lines

  1. As many people keep asking for the control and escape sequences
  2. of the vtxx series, I have put SOME of them together in this 
  3. summary.
  4.  
  5. For the full command set or any other details (especially on 
  6. graphics) it is better to dig up a manual somewhere 
  7. or CALL DEC(!) (usually DEC-Direct) 
  8. and have a manual sent (They actually do it).
  9.  
  10. The folowing sequences are written within < > and using spaces 
  11. for easier reading. DO NOT type the spaces or the < > unless 
  12. they are explicitly given as  "space" or "<", ">" respectively.
  13. The term chr(n), where n is a value of 0 through 255, denotes a
  14. character with that decimal value.
  15.  
  16. The letter P followed by a label (or just "n")  stands for a 
  17. numerical value (ascii digits i.e. 25). A parameter can be
  18. omitted, in which case it will assume a certain default 
  19. value (denoted as D:n). If a sequence can take more than 
  20. one parameter (given as p followed by a label) then the 
  21. paramters are separated by semicolons (;).
  22.  
  23. mnemonic               7bit equivalent     8bit equivalent
  24. ------------           ---------------     ---------------
  25. BEL (sound beeper)     <chr(7)>            <chr(7)>
  26. BS  (backspace)        <chr(8)>            <chr(8)>
  27. HT  (tab)              <chr(9)>            <chr(9)>
  28. LF  (line feed)        <chr(10)>           <chr(10)>
  29. FF  (form feed)        <chr(12)>           <chr(12)>
  30. CR  (cariage return)   <chr(13)>           <chr(13)>
  31. SO  (shift out,G1->GL) <chr(14)>           <chr(14)>
  32. SI  (shift in, G0->GL) <chr(15)>           <chr(15)>
  33. DC1 (xon (dev ctrl 1)) <chr(17)>           <chr(17)>
  34. DC3 (xoff(dev ctrl 2)) <chr(19)>           <chr(19)>
  35. ESC                    <chr(27)>           <chr(27)>
  36. IND (index)            <ESC D>             <chr(132)>
  37. NEL (next line)        <ESC E>             <chr(133)>
  38. RI  (reverse index)    <ESC M>             <chr(141)>
  39. SS2 (single shift 2)   <ESC N>             <chr(142)>
  40. SS3 (single shift 3)   <ESC O>             <chr(143)>
  41. DCS (dev ctrl string)  <ESC P>             <chr(144)>
  42. CSI                    <ESC [>             <chr(155)>
  43. ST  (string terminator)<ESC \>             <chr(156)>
  44.  
  45. Note: the 8bit equivalents are only possible on the vt2xx and
  46.       vt3xx terminals. They can always be sent TO the termial
  47.       but will only be sent FROM the terminal if in 8bit
  48.       control mode.
  49.  
  50. The columns 1, 1a, 2 and 3 give the availability of that
  51. sequence on the vt100/101, vt102/131/132, vt2x0 and vt3x0 
  52. terminals respectively.
  53.  
  54. Control commands sent TO the terminal:
  55.  
  56. sequence      atcion                           1 1a 2 3
  57. ------------- -------------------------------- - -  - -
  58. <CSI Pn A>    cursor up (D:1)                  * *  * *
  59. <CSI Pn B>    cursor down (D:1)                * *  * *
  60. <CSI Pn C>    cursor right (D:1)               * *  * *
  61. <CSI Pn C>    cursor left (D:1)                * *  * *
  62. <CSI H>       cursor home (top left corner)    * *  * *
  63. <CSI Pline ; Pcolumn H>
  64.               set cursor to line and column    * *  * *
  65.  
  66. <CSI Ptop ; Pbottom r>
  67.               set top and bottom lines of the scroll
  68.               region (lines 1..24)             * *  * *
  69.  
  70. <CSI Pn M>    delete n lines (D:1)               *  * *
  71. <CSI Pn L>    insert n lines (D:1)               *  * *
  72. <CSI Pn P>    delete n characters (D:1)          *  * *
  73. <CSI Pn @>    insert n characters (D:1)          *  * *
  74.  
  75. <CSI Pmode J> erase in display: mode is of     * *  * *
  76.               D:0 (or none) cursor to end 
  77.               1 beginning to cursor
  78.               2 entire screen
  79. <CSI Pmode K> erase in line: mode is of        * *  * *
  80.               D:0 (or none) cursor to end
  81.               1 beginning to cursor
  82.               2 entire line
  83. <CSI Pn X>    erase n characters                    * *
  84.  
  85. <CSI pattribute m>
  86.               set character attribute(s)
  87.               D:0 (or none) clear all          * *  * *
  88.               1 set bold                       * *  * *
  89.               4 set underline                  * *  * *
  90.               5 set blink                      * *  * *
  91.               7 set reverse                    * *  * *
  92.               22 turn bold off only                 * *
  93.               24 turn underline off only            * *
  94.               25 turn blinking off only             * *
  95.               27 turn reverse off only              * *
  96. (<CSI 0 ; 7 m> will reset the attributes and then set reverse)
  97.  
  98. <ESC # 5>     single-width single-height line  * *  * *
  99. <ESC # 6>     double-width single-height line  * *  * *
  100. <ESC # 3>     double-width double-height top   * *  * *
  101. <ESC # 4>     double-width double-height bottom* *  * *
  102.  
  103. <ESC 7>       save cursor position and attribs * *  * *
  104. <ESC 8>       restore to saved values          * *  * *
  105.  
  106. <CSI 4 h>     set insert mode                    *  * *
  107. <CSI 4 l>     set overtype mode                  *  * *
  108.  
  109. <CSI ? 25 h>  visible cursor                        * *
  110. <CSI ? 25 l>  invisible cursor                      * *
  111.  
  112. <CSI 2 h>     lock keyboard                    * *  * *
  113. <CSI 2 l>     unlock keyboard                  * *  * *
  114.  
  115. <CSI 20 h>    new line mode                    * *  * *
  116. <CSI 20 l>    ine feed mode                    * *  * *
  117.  
  118. <CSI ? 8 h>   autorepeat key                   * *  * *
  119. <CSI ? 8 l>   no autorepeat                    * *  * *
  120.  
  121. <CSI ? 7 h>   autowrap key                     * *  * *
  122. <CSI ? 7 l>   no autowrap                      * *  * *
  123.  
  124. <CSI ? 1 h>   cursor application keys          * *  * *
  125. <CSI ? 1 l>   cursor keys                      * *  * *
  126.  
  127. <ESC =>       application numeric block        * *  * *
  128. <ESC ">">     numeric block                    * *  * *
  129.  
  130. <CSI ? 5 h>   light background                 * *  * *
  131. <CSI ? 5 l>   dark background                  * *  * *
  132.  
  133. <CSI ? 3 h>   132 columns                      * *  * *
  134. <CSI ? 3 l>   80 columns                       * *  * *
  135.  
  136. <CSI ? 6 h>   move cursor withing margins      * *  * *
  137. <CSI ? 6 l>   move cursor absolute             * *  * *
  138.  
  139. <CSI c>       (primary) device attrib. request * *  * *
  140.               response is: <CSI ? plist c>
  141. <CSI 6 n>     cursor position report           * *  * *
  142.               response is: <CSI Pline;Pcolumn R>
  143.  
  144. user definable keys (UDKs) on vt2x0 and vt3x0:
  145. ----------------------------------------------
  146.  
  147. <DCS Pclear ; Plock | Pkey1 / Pstring1 ; ... Pkeyn / Pstringn ST>
  148.  
  149. clear : D:0: clear all keys before loading
  150.         1: clear this key before loading
  151.  
  152. lock  : 0: lock the keys
  153.         D:1: do not lock the keys
  154.  
  155. key   : numeric key value send in escape sequence of this key.
  156.         see: "Control commands sent FROM the terminal"
  157.  
  158. string: string to send encoded as two digits-per-character hexadecimals
  159.  
  160. download a soft character font for the vt2x0 and vt3x0:
  161. -------------------------------------------------------
  162.  
  163. <DCS Pfn ; Pcn ; Pec ; Pcmw ; Pw ; Pt ; Pcmh ; Pcss ; {
  164.  Dscs Sxbp1 ; Sxbp2 ; ... ; Sxbpn ST>
  165.  
  166. fn : font number               0 or 1
  167. cn : starting character (position of first character send
  168.      in character set)         0..95
  169. ec : erase control             0..2
  170. cmw: character matrix width    0..6
  171. w  : font width                0..2
  172. t  : text or full-cell         0..2
  173. cmh: character matrix height   0..12
  174. css: character set size        0..1
  175. Dscs:define character set name <"space"../ "space"../ F>
  176. Sxbpn: sixel bit patterns      
  177.        <sixel ; sixel ; .. ; sixel / sixel ; ... >
  178.  
  179. Control commands sent FROM the terminal:
  180.  
  181. sequence      key                              1 1a 2 3
  182. ------------- -------------------------------- - -  - -
  183. <CSI A>       cursor key up    }               * *  * *
  184. <CSI B>       cursor key down  }  cursor key   * *  * *
  185. <CSI C>       cursor key right }  mode         * *  * *
  186. <CSI C>       cursor key left  }               * *  * *
  187.  
  188. <SS3 A>       cursor key up    }  application  * *  * *
  189. <SS3 B>       cursor key down  }  cursor key   * *  * *
  190. <SS3 C>       cursor key right }  mode         * *  * *
  191. <SS3 C>       cursor key left  }               * *  * *
  192.  
  193. <SS3 P>       PF1                              * *  * *
  194. <SS3 Q>       PF2                              * *  * *
  195. <SS3 R>       PF3                              * *  * *
  196. <SS3 S>       PF4                              * *  * *
  197.  
  198. <CSI 1 ~>     Find                                  * *
  199. <CSI 2 ~>     Insert Here                           * *
  200. <CSI 3 ~>     Remove                                * *
  201. <CSI 4 ~>     Select                                * *
  202. <CSI 5 ~>     Prev Screen                           * *
  203. <CSI 6 ~>     Next Screen                           * *
  204. <CSI 1 7 ~>   F6                                    * *
  205. <CSI 1 8 ~>   F7                                    * *
  206. <CSI 1 9 ~>   F8                                    * *
  207. <CSI 2 0 ~>   F9                                    * *
  208. <CSI 2 1 ~>   F10                                   * *
  209. <CSI 2 3 ~>   F11                                   * *
  210. <CSI 2 4 ~>   F12                                   * *
  211. <CSI 2 5 ~>   F13                                   * *
  212. <CSI 2 6 ~>   F14                                   * *
  213. <CSI 2 8 ~>   Help                                  * *
  214. <CSI 2 9 ~>   Do                                    * *
  215. <CSI 3 1 ~>   F17                                   * *
  216. <CSI 3 2 ~>   F18                                   * *
  217. <CSI 3 3 ~>   F19                                   * *
  218. <CSI 3 4 ~>   F20                                   * *
  219.  
  220. key codes of the numeric keypad in:            * *  * *
  221. numeric application mode    key
  222. ---     -------             ---
  223. <0>     <SS3 p>              0
  224. <1>     <SS3 q>              1
  225. <2>     <SS3 r>              2
  226. <3>     <SS3 s>              3
  227. <4>     <SS3 t>              4
  228. <5>     <SS3 u>              5
  229. <6>     <SS3 v>              6
  230. <7>     <SS3 w>              7
  231. <8>     <SS3 x>              8
  232. <9>     <SS3 y>              9
  233. <->     <SS3 m>              -
  234. <,>     <SS3 l>              ,
  235. <.>     <SS3 n>              .
  236. <CR>    <SS3 M>              enter
  237.  
  238. //////////////////////////////////////////////////////
  239. // Robert Frank                                     //
  240. // frank@urz.unibas.ch        (061) 321 99 67       //
  241. //                                                  //
  242. // Institute for Informatics University Basel       //
  243. // Mittlere Strasse 142                             //
  244. // CH-4056 Basel                                    //
  245. // Switzerland                                      //
  246. //////////////////////////////////////////////////////